import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CheeseToastComponent } from './toast.component';
import { CheeseToastService } from './toast.service';

@NgModule({
  declarations: [
    CheeseToastComponent
  ],
  imports: [
    CommonModule,
    BrowserAnimationsModule
  ],
  exports: [
    // 不再需要导出组件，因为它会被服务动态创建
  ],
  providers: [
    CheeseToastService
  ],
  entryComponents: [
    CheeseToastComponent  // 确保组件可以被动态创建
  ]
})
export class CheeseToastModule { }